home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / LinAlg 3.1 / LinAlg / vslesing.dat < prev    next >
Encoding:
Text File  |  1995-12-21  |  3.4 KB  |  80 lines  |  [TEXT/CWIE]

  1.  
  2.  
  3. Verify application of SVD to solving sets of simultaneous equations
  4.  
  5.  
  6. Checking solution of a set of linear equations
  7. with a Hilb+E of order 10x10
  8.  
  9. condition number 2.75192
  10.  
  11. Matrix 2x10 'true vs. computed solution' is as follows
  12.  
  13.      |        1  |        2  |        3  |        4  |        5  |        6  |
  14. -------------------------------------------------------------------------------
  15.    1 |          1            2            3            4            5            6  
  16.    2 |          1            2            3            4            5            6  
  17.  
  18.  
  19.      |        7  |        8  |        9  |       10  |
  20. -------------------------------------------------------------------------------
  21.    1 |          7            8            9           10  
  22.    2 |          7            8            9           10  
  23. Done
  24.     checking to see that Ax is indeed b
  25. Two (6,1) elements of matrices with values 10.8255 and 10.8255
  26. differ the most, though the deviation 2.86102e-06 is small
  27.  
  28.  
  29. Checking solution of a set of linear equations
  30. with a Hilb+E of order 20x10
  31.  
  32. condition number 2.7952
  33.  
  34. Matrix 2x10 'true vs. computed solution' is as follows
  35.  
  36.      |        1  |        2  |        3  |        4  |        5  |        6  |
  37. -------------------------------------------------------------------------------
  38.    1 |          1            2            3            4            5            6  
  39.    2 |          1            2            3            4            5            6  
  40.  
  41.  
  42.      |        7  |        8  |        9  |       10  |
  43. -------------------------------------------------------------------------------
  44.    1 |          7            8            9           10  
  45.    2 |          7            8            9           10  
  46. Done
  47.     checking to see that Ax is indeed b
  48. Two (8,1) elements of matrices with values 12.0731 and 12.0731
  49. differ the most, though the deviation 5.72205e-06 is small
  50.  
  51.  
  52. Checking solution of a set of linear equations
  53. with a Hilbert matrix of order 10
  54.  
  55. condition number 9.17516e+08
  56.  
  57. SVD solver of AX=B detected a linear dependency among X
  58.   #  singular value null coefficients
  59.  7      1.2e-07     (0.00130969 -0.0394399   0.269171  -0.617029   0.308845   0.393727   -0.02906  -0.351747  -0.257299   0.322623 )
  60.  8      1.9e-09     (        -0 0.00276592 -0.0501898   0.267559  -0.521909   0.179025   0.453382  -0.106034  -0.547738   0.323467 )
  61.  9      3.2e-09     (        -0 -0.000390014 0.00799771 -0.0502112   0.118322 -0.0198647  -0.395754   0.725841  -0.528438   0.142498 )
  62.  10      3.6e-09    (         0 0.000738952 -0.0168004   0.124252  -0.419034   0.700492   -0.51338 -0.00886913   0.217251 -0.0846435 )
  63.  
  64. Matrix 2x10 'true vs. computed solution' is as follows
  65.  
  66.      |        1  |        2  |        3  |        4  |        5  |        6  |
  67. -------------------------------------------------------------------------------
  68.    1 |          1            2            3            4            5            6  
  69.    2 |     0.9981        2.036         2.86         4.13        5.082        5.963  
  70.  
  71.  
  72.      |        7  |        8  |        9  |       10  |
  73. -------------------------------------------------------------------------------
  74.    1 |          7            8            9           10  
  75.    2 |      6.911        7.938        9.007        10.08  
  76. Done
  77.     checking to see that Ax is indeed b
  78. Two (1,1) elements of matrices with values 10 and 10
  79. differ the most, though the deviation 3.8147e-06 is small
  80.